package com.xxxx.server.pojo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 学生请假表
 * </p>
 *
 * @author zhoubin
 * @since 2022-06-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_sleave")
@ApiModel(value="Sleave对象", description="学生请假表")
public class Sleave implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "请假编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "姓名")
    @TableField(exist = false)
    @Excel(name = "姓名")
    private String name;

    @ApiModelProperty(value = "学院名称")
    @TableField(exist = false)
    @Excel(name = "学院名称")
    private String coname;

    @ApiModelProperty(value = "班级名称")
    @TableField(exist = false)
    @Excel(name = "班级名称")
    private String clname;

    @ApiModelProperty(value = "是否离校")
    @Excel(name="是否离校")
    private Integer leaveschool;

    @ApiModelProperty(value = "是否离开贵州省")
    @Excel(name="是否离开贵州省")
    private Integer leavegz;

    @ApiModelProperty(value = "请假类型")
    @Excel(name="请假类型")
    private String type;

    @ApiModelProperty(value = "请假原因")
    @Excel(name="请假原因")
    private String reason;


    @ApiModelProperty(value = "请假去向")
    @Excel(name="请假去向")
    private String direction;

    @ApiModelProperty(value = "本人联系电话")
    @Excel(name="本人联系电话")
    private Integer perTele;

    @ApiModelProperty(value = "开始时间")
    @Excel(name="开始时间",width = 20,format="yyyy-MM-dd")
    private LocalDateTime startTime;

    @ApiModelProperty(value = "结束时间")
    @Excel(name="结束时间",width = 20,format="yyyy-MM-dd")
    private LocalDateTime endTime;

    @ApiModelProperty(value = "请假时长")
    @Excel(name="请假时长")
    private String totalTime;

    @ApiModelProperty(value = "班主任/辅导员姓名")
    @Excel(name="班主任/辅导员姓名")
    private String teaName;

    @ApiModelProperty(value = "班主任/导师联系方式")
    @Excel(name="班主任/导师联系方式")
    private String teaTele;

    @ApiModelProperty(value = "紧急联系人姓名")
    @Excel(name="紧急联系人姓名")
    private String jjName;

    @ApiModelProperty(value = "紧急联系电话")
    @Excel(name="紧急联系电话")
    private String jjTele;

    @ApiModelProperty(value = "外键")
    private Integer SLid;

    @ApiModelProperty(value = "创建时间")
    @Excel(name="创建时间",width = 20,format="yyyy-MM-dd")
    private LocalDateTime creatTime;

    @ApiModelProperty(value = "修改时间")
    @Excel(name="修改时间",width = 20,format="yyyy-MM-dd")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "编号")
    @TableField(exist = false)
    private Integer shenheid;

    @ApiModelProperty(value = "学院管理员")
    @TableField(exist = false)
    private String xueyuan;

    @ApiModelProperty(value = "学院管理员状态")
    @TableField(exist = false)
    private Integer state1;

    @ApiModelProperty(value = "辅导员")
    @TableField(exist = false)
    private String fudaoyuan;

    @ApiModelProperty(value = "辅导员状态")
    @TableField(exist = false)
    private Integer state2;

    @ApiModelProperty(value = "学校管理员")
    @TableField(exist = false)
    private String xuexiao;

    @ApiModelProperty(value = "学校管理员状态")
    @TableField(exist = false)
    private Integer state3;

    @ApiModelProperty(value = "学校管理员备注")
    @TableField(exist = false)
    private String remark1;

    @ApiModelProperty(value = "学院管理员备注")
    @TableField(exist = false)
    private String remark2;

    @ApiModelProperty(value = "辅导员管理员备注")
    @TableField(exist = false)
    private String remark3;

}
